home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH03 / EX2.X86 < prev    next >
Encoding:
Text File  |  1996-01-31  |  177 b   |  19 lines

  1.     mov    bx, 1000
  2. a:    get
  3.     mov    [bx], ax
  4.     add    bx, 2
  5.     cmp    ax, 0
  6.     jne    a
  7.  
  8.     mov    cx, bx
  9.     mov    bx,1000
  10.     mov    ax, 0
  11. b:    add    ax, [bx]
  12.     add    bx, 2
  13.     cmp    bx, cx
  14.     jb    b
  15.  
  16.     put
  17.     halt
  18.  
  19.